package com.desire.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.Set;

/**
 * @author LittleDesire
 * @description
 * @date 2022-04-14 周四 18:15
 * @since 17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("user")
public class User {
    private String username;
    private String password;
    /*一对一*/
    private UserInfo userinfo;
    /*一对多*/
    private Set<UserAddress> userAddresses;
}
